export function decodePermissionType(num) {
  switch (num) {
    case 0:
      return '目录'
    case 1:
      return '菜单'
    case 2:
      return '按钮'
    default:
      break
  }
}

export function encodePermissionType(str) {
  switch (str) {
    case '目录':
      return 0
    case '菜单':
      return 1
    case '按钮':
      return 2
    default:
      break
  }
}
